execute if score #HubMenuSelectRay temp matches 8.. run return run scoreboard players reset #HubMenuSelectRay
scoreboard players add #HubMenuSelectRay temp 1

tag @n[distance=..0.475,type=item_display,tag=hub.menuEntity,tag=!noSelectAnim,tag=testID] add success
execute if entity @n[tag=success,distance=..1,type=item_display] run return run scoreboard players reset #HubMenuSelectRay

execute positioned ^ ^ ^0.8 run function vs:system/hub/menu/select/ray